Method, device and computer readable storage medium for presenting emotion

ABSTRACT

The present disclosure relates to a method, device and computer readable storage medium for presenting an emotion. The method for presenting the emotion includes obtaining a first emotion presentation instruction, wherein the first emotion presentation instruction includes at least one first emotion presentation modality and at least one emotional style, and the at least one first emotion presentation modality includes a text emotion presentation modality; and presenting an emotion corresponding to one or more of the at least one emotional style according to each of the at least one first emotion presentation modality. The present disclosure can realize text-based multi-modal emotion presentation modes, and thus user experience can be improved.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims priority to Chinese Patent ApplicationNo. 201711285485.3, filed on Dec. 7, 2017, Chinese Patent ApplicationNo. 201711327146.7, filed on Dec. 13, 2017, Chinese Patent ApplicationNo. 201711327784.9, filed on Dec. 13, 2017, Chinese Patent ApplicationNo. 201711328629.9, filed on Dec. 13, 2017, and Chinese PatentApplication No. 201711328630.1, filed on Dec. 13, 2017, the entirecontents of which are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure generally relates to the field of naturallanguage processing and artificial intelligence technologies, and moreparticularly, to a method, device and computer readable storage mediumfor presenting an emotion.

BACKGROUND

With the continuous development of artificial intelligence technologyand the continuous improvement of interactive experience requirements,some traditional man-machine interaction modes have gradually beenreplaced by intelligent interaction modes, and thus the intelligentinteraction modes have become the focus of research.

At present, the prior art mainly focuses on identifying emotionalsignals to obtain an emotional state, or presenting a similar oropposite emotion only by observing a user's expressions, movements, orthe like, and thus a presentation mode is single and user experience ispoor.

SUMMARY

In view of this, embodiments of the present disclosure provide a method,device and computer readable storage medium for presenting an emotion,which may solve above technical problems.

According to a first aspect of the present disclosure, there is provideda method for presenting an emotion, including: obtaining a first emotionpresentation instruction, wherein the first emotion presentationinstruction includes at least one first emotion presentation modalityand at least one emotional style, and the at least one first emotionpresentation modality includes a text emotion presentation modality; andpresenting an emotion corresponding to one or more of the at least oneemotional style according to each of the at least one first emotionpresentation modality.

According to a second aspect of the present disclosure, there isprovided a device for presenting an emotion, including: a processor; anda memory for storing instructions executable by the processor; whereinthe processor is configured to: obtain a first emotion presentationinstruction, wherein the first emotion presentation instruction includesat least one first emotion presentation modality and at least oneemotional style, and the at least one first emotion presentationmodality includes a text emotion presentation modality; and present anemotion corresponding to one or more of the at least one emotional styleaccording to each of the at least one first emotion presentationmodality.

According to a third aspect of the present disclosure, there is provideda computer readable storage medium storing computer executableinstructions that, when executed by a processor of a device forpresenting an emotion, cause the device to perform a method comprising:obtaining a first emotion presentation instruction, wherein the firstemotion presentation instruction comprises at least one first emotionpresentation modality and at least one emotional style, and the at leastone first emotion presentation modality comprises a text emotionpresentation modality; and presenting an emotion corresponding to one ormore of the at least one emotional style according to each of the atleast one first emotion presentation modality.

According to technical solutions provided by embodiments of the presentdisclosure, by obtaining a first emotion presentation instruction,wherein the first emotion presentation instruction includes at least onefirst emotion presentation modality and at least one emotional style,and the at least one first emotion presentation modality includes a textemotion presentation modality; and presenting an emotion correspondingto one or more of the at least one emotional style according to each ofthe at least one first emotion presentation modality, text-basedmulti-modal emotion presentation modes can be realized, and thus userexperience can be improved.

It is to be understood that both the foregoing general description andthe following detailed description are exemplary and explanatory onlyand are not restrictive of the invention, as claimed.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute apart of this specification, illustrate embodiments consistent with theinvention and, together with the description, serve to explain theprinciples of the invention.

FIG. 1 is a flowchart of a method for presenting an emotion according toan exemplary embodiment of the present disclosure.

FIG. 2 is a flowchart of a method for presenting an emotion according toanother exemplary embodiment of the present disclosure.

FIG. 3 is a block diagram of a device for presenting an emotionaccording to an exemplary embodiment of the present disclosure.

FIG. 4 is a block diagram of a device for presenting an emotionaccording to another exemplary embodiment of the present disclosure.

FIG. 5 is a block diagram of a device for presenting an emotionaccording to an exemplary embodiment of the present disclosure.

DETAILED DESCRIPTION

The technical solutions according to the embodiments of the presentinvention are to be clearly described in the following with reference tothe accompanying drawings in the embodiments of the present invention.It is obvious that the embodiments to be described are a part, ratherthan all, of the embodiments of the present invention. All otherembodiments obtained by persons skilled in the art based on theembodiments of the present invention without creative efforts shall fallwithin the protection scope of the present invention.

Emotion presentation is a final manifestation of an affective computinguser interface, and is a result of emotion analysis recognition andemotion intention understanding (analysis). The emotion presentation canprovide an intelligent emotional feedback according to a current stateof a user and an emotion presentation instruction decision process, andprovide the intelligent emotional feedback to the user through anemotion output device.

FIG. 1 is a flowchart of a method for presenting an emotion according toan exemplary embodiment of the present disclosure. As shown in FIG. 1,the method for presenting an emotion may include the following steps.

In step 110, a first emotion presentation instruction is obtained,wherein the first emotion presentation instruction includes at least onefirst emotion presentation modality and at least one emotional style,and the at least one first emotion presentation modality includes a textemotion presentation modality.

In the embodiment of the present disclosure, the first emotionpresentation instruction may be obtained by analyzing and identifyingemotion information, or may also be directly determined by settingmanually, and the present disclosure is not limited thereto. Forexample, when a particular emotion needs to be presented, a robot maydirectly present the particular emotion by using the emotionpresentation instruction having been set manually without identifyingthe user's emotions.

Methods for inputting emotion information may include, but are notlimited to, one or more of a text, a voice, an image, a gesture, and thelike. For example, the user may input the emotion information only inthe form of the text, or may also input the emotion information in acombination of the text and the voice, or may even extract the emotioninformation such as facial expressions, pronunciation and intonation,and body movements of the user through a collection device.

The first emotion presentation instruction is an output result of theemotion intention understanding and an emotion presentation instructiondecision in the affective computing user interface, and the firstemotion presentation instruction should have a clear executable meaningand should be easily understood and accepted. Contents of the firstemotion presentation instruction may include at least one first emotionpresentation modality and at least one emotional style.

The first emotion presentation modality may include a text emotionpresentation modality, or may also include at least one of a voiceemotion presentation modality, an image emotion presentation modality, avideo emotion presentation modality and a mechanical motion emotionpresentation modality, and the present disclosure is not limitedthereto. It should be noted that the final emotion presentation may beonly one emotion presentation modality, such as the text emotionpresentation modality; or may be a combination of several emotionalmodalities, such as the combination of the text emotion presentationmodality and the voice emotion presentation modality, or the combinationof the text emotion presentation modality, the voice emotionpresentation modality, and the image emotion presentation modality.

The emotional style (also known as emotional component) may berepresented by a classified emotion model and a dimensional emotionmodel. An emotional state of the classified emotion model is discrete,and thus the classified emotion model is also referred to as a discreteemotion model. A region and/or a set of at least one point in amulti-dimensional emotional space may be defined as an emotional stylein the classified emotion model. The dimensional emotion model is usedto construct a multi-dimensional emotional space, each dimension of themulti-dimensional emotional space corresponds to an emotional factordefined by psychology. According to the dimensional emotion model, theemotional state is represented by coordinate values in themulti-dimensional emotional space. In addition, the dimensional emotionmodel may be continuous or discrete.

The discrete emotion model is a main form and a recommended form of theemotional style, and emotions presented by the emotion information maybe classified by the discrete emotion model according to fields orapplication scenarios, and emotional styles of different fields ordifferent application scenarios may be the same or different. Forexample, in the general field, a basic emotional classification systemis generally used as a dimensional emotion model, that is, themulti-dimensional emotional space includes six dimensions, such as joy,sadness, anger, surprise, fear, and disgust. In the field of customerservice, the commonly-used emotional styles may include, but are notlimited to, joy, sadness, comfort, dissuasion, and the like. In thefield of companion and care, the commonly-used emotional styles mayinclude, but are not limited to, joy, sadness, curiousness, comfort,encouragement, dissuasion, and the like.

The dimensional emotion model is a supplementary method of the emotionalstyle. The dimensional emotion mode is only used for continuous dynamicchanges and subsequent emotional calculations at present, for example, afine-tuning of parameters needs to be performed in real time; or thedimensional emotion mode is used for a case of greatly affectingcalculations of contextual emotional states. The dimensional emotionmodel is convenient for the calculations and the fine-tuning, but needsto be utilized by matching with presented application parameters.

In addition, each field has a major concerned emotional style (emotionsof user information are identified to obtain emotional styles concernedin the field) and a major presented emotional style (emotional styles inthe emotion presentation or interactive instruction), both of which maybe two different sets of emotional classifications (such as theclassified emotion model) or different ranges of emotional dimensions(such as the dimensional emotion model). In an application scenario, themajor presented emotional style corresponding to the major concernedemotional style in the field is determined by the emotion presentationinstruction decision process.

If the first emotion presentation instruction includes a plurality ofemotion presentation modalities, the text emotion presentation modalityis preferentially used to present the at least one emotional style, andthen the at least one emotional style is supplementary presented byusing one or more of the voice emotion presentation modality, the imageemotion presentation modality, the video emotion presentation modalityand the mechanical motion emotion presentation modality. Thesupplementary presented emotional style may be at least one emotionalstyle that is not presented by the text emotion presentation modality,or at least one emotional style that the emotional intensity and/or theemotional polarity presented by the text emotion presentation modalitydoes not meet requirements of the first emotion presentationinstruction.

It should be noted that the first emotion presentation instruction mayspecify one or more emotional styles, and the emotional styles may besequenced according to an intensity of each emotional style, so as todetermine a primary and secondary relation of each emotional style inthe emotion presentation process. Specifically, if the emotionalintensity of the emotional style is less than a preset emotionalintensity threshold, it could be considered that the emotional intensityof the emotional style in the emotion presentation process is notgreater than emotional intensities of other emotional styles in thefirst emotion presentation instruction, wherein the emotionalintensities of the other emotional styles are greater than or equal tothe emotional intensity threshold.

In step 120, an emotion corresponding to one or more of the at least oneemotional style is presented according to each of the at least one firstemotion presentation modality.

In the embodiment of the present disclosure, a selection of the emotionpresentation modality depends on following factors: an emotion outputdevice and an application state thereof (for example, whether theemotion output device has a display for displaying the text or theimage, or whether the emotion output device is connected to a speaker,and the like), types of interaction scenarios (for example, daily chat,business consulting, and the like), types of conversations (for example,answers to common questions are mainly based on the text, and a GlobalPosition System (GPS) is based on the image and is supplemented by thevoice).

Further, an output mode of the emotion presentation depends on theemotion presentation modality. For example, if the first emotionpresentation modality is the text emotion presentation modality, thefinal output mode of the emotion presentation is the text; and if thefirst emotion presentation modality is based on the text emotionpresentation modality and is supplemented by the voice emotionpresentation, the final output mode of the emotion presentation is acombination of the text and the voice. That is, the output mode of theemotion presentation can only include one emotion presentation modality,or can also include a combination of several emotion presentationmodalities, and the present disclosure is not limited thereto.

According to technical solutions provided by embodiments of the presentdisclosure, by obtaining a first emotion presentation instruction,wherein the first emotion presentation instruction includes at least onefirst emotion presentation modality and at least one emotional style,and the at least one first emotion presentation modality includes a textemotion presentation modality, and presenting an emotion correspondingto one or more of the at least one emotional style according to each ofthe at least one first emotion presentation modality, text-basedmulti-modal emotion presentation modes can be realized, and thus userexperience can be improved.

In another embodiment of the present disclosure, the presenting anemotion corresponding to one or more of the at least one emotional styleaccording to each of the at least one first emotion presentationmodality includes: searching in an emotion presentation databaseaccording to the at least one emotional style to determine at least oneemotional vocabulary corresponding to each of the at least one emotionalstyle; and presenting the at least one emotional vocabulary.

Specifically, the emotion presentation database may be preset manually,or may be obtained through a big data learning, or may also be obtainedby a semi-supervised learning and semi-artificial semi-supervisedman-machine cooperation, or may even be obtained through training awhole interactive system based on a large number of emotional dialogdata. It should be noted that the emotion presentation database allowsonline learning and updating.

Emotional vocabularies and parameters of the emotional style, theemotional intensity, and the emotional polarity of the emotionalvocabularies may be stored in the emotion presentation database, or maybe obtained by an external interface. In addition, the emotionpresentation database includes a set of emotional vocabularies ofmultiple application scenarios and corresponding parameters. Therefore,the emotional vocabularies may be switched and adjusted according to apractical application.

The emotional vocabularies may be classified according to emotionalstates of users concerned in the application scenarios. That is, theemotional style, the emotional intensity and the emotional polarity ofthe same emotional vocabulary are related to the application scenarios.For example, in the general field without special applicationrequirements, Chinese emotional vocabularies may be classified accordingto the above six basic emotional styles, and thus the emotional stylesand corresponding examples and phrases shown in Table 1 are obtained.

TABLE 1 No. Emotional style Example words 1 joy happy, good, excitement,happiness, perfect, . . . 2 sadness grief, distress, depression,heartbreak, . . . 3 anger indignation, annoyed, irritated, rage, . . . 4surprise strange, astonishment, make a great coup, jaw-dropping, . . . 5fear bewilderment, panicked, in bewilderment, tremble with fear, . . . 6disgust dislike, hateful, aversion, antipathy, blame, apologetic, . . .

It should be noted that example words in Table 1 are recommended examplewords, which are divided based on the major emotional styles of theemotional vocabularies in the application scenarios of the generalfield. The above six emotional styles are not fixed. In the practicalapplication, the emotional styles of the emotional vocabularies may beadjusted according to the application scenarios, for example, anemotional style paying special attention to is added, or an emotionstyle without special application is deleted.

In addition, the same emotional vocabulary may have differentparaphrases in different contexts to express different emotions, thatis, the emotional style and the emotional polarity can be changed.Therefore, the same emotional vocabulary needs to be performed anemotion disambiguation according to the application scenarios and thecontexts to determine the emotional style of the emotional vocabulary.

Specifically, an emotion annotation of the Chinese emotional vocabularyis performed by an automatic mode, a manual mode, or a combination ofthe automatic mode and the manual mode. For vocabularies with multipleemotional styles, the emotion disambiguation may be performed based onpart of speech, emotional frequency. Bayesian model, and the like. Inaddition, the emotional style of the emotional vocabulary in the contextmay also be determined by constructing a context-sensitivecharacteristic set.

In another embodiment of the present disclosure, the each of the atleast one emotional style corresponds to a plurality of emotionalvocabularies, and the first emotion presentation instruction furtherincludes: emotional intensity corresponding to the each of the at leastone emotional style and/or emotional polarity corresponding to the eachof the at least one emotional style, wherein the searching in an emotionpresentation database according to the at least one emotional style todetermine at least one emotional vocabulary corresponding to each of theat least one emotional style includes: selecting the at least oneemotional vocabulary from the plurality of emotional vocabulariesaccording to the emotional intensity and/or the emotional polarity.

Specifically, each emotional style may correspond to a plurality ofemotional vocabularies. Contents of the first emotion presentationinstruction may further include an emotional intensity corresponding toeach emotional style and/or an emotional polarity corresponding to eachemotional style, and at least one emotional vocabulary is selected fromthe plurality of emotional vocabularies according to the emotionalintensity and/or the emotional polarity.

The emotional intensity is derived from a tendency of things selected bya person, and is a factor for describing emotions in psychology. In thepresent disclosure, the emotional intensity is used to describe levelsof the emotions. The emotional intensity may be set to differentemotional intensity levels, for example, level 2 (i.e., with emotionalintensity and no emotional intensity), level 3 (i.e., low emotionalintensity, moderate emotional intensity, and high emotional intensity),or higher level, according to the application scenarios, and the presentdisclosure is not limited thereto.

In a particular application scenario, there is a one-to-onecorrespondence between the emotional style and emotional intensity ofthe same emotional vocabulary. In the practical application, theemotional intensity of the first emotion presentation instruction isfirstly divided, since the emotional intensity determines the emotionalintensity level finally presented by the emotion presentation; secondly,the intensity level of the emotional vocabulary is determined accordingto the emotional intensity level of the first emotion presentationinstruction. It should be noted that the emotional intensity of thepresent disclosure is determined by the emotion presentation instructiondecision process. In addition, it should also be noted that theemotional intensity level needs to match with the emotional intensitylevel of the first emotion presentation instruction, and acorrespondence between the emotional intensity level and the emotionalintensity level of the first emotion presentation instruction may beobtained by an operational rule.

The emotional polarity may include one or more of commendatory,derogatory and neutral. Each emotional style specified by the firstemotion presentation instruction corresponds to one or more emotionalpolarities. Specifically, taking the emotional style “disgust” in Table1 as an example, in the example words corresponding to the emotionalstyle of “disgust”, the emotional polarity of “blame” is derogatory, andthe emotional polarity of “apologetic” is neutral. It should be notedthat the emotional polarity of the present disclosure is determined bythe emotion presentation instruction decision process, which may be adecision process of outputting a presentation instruction according toone or more of the users information, such as the emotional states, theinteraction intentions, the application scenarios, and the like. Inaddition, the emotion presentation instruction decision process may alsobe a process of adjusting the emotional polarity according to theapplication scenarios and the users requirements and activelydetermining the emotion presentation instruction if the user's emotionalstates and intention information are not obtained. For example, nomatter how the user's states and intents, a guiding robot could presenta “joyful” emotion.

In another embodiment of the present disclosure, the at least oneemotional vocabulary is divided into different levels according todifferent emotional intensities.

Specifically, the level of the emotional vocabulary is finer than thelevel of the emotional intensity specified by the first emotionpresentation instruction. Such presentation rules are less demanding andthe results are more likely to converge. That is, the level of theemotional vocabulary is more than the level of the emotional intensity,however, the emotional vocabulary may correspond to the emotionalintensity specified by the first emotion presentation instructionthrough an operational rule, and may not exceed an upper limit and alower limit of the emotional intensity level specified by the firstemotion presentation instruction.

For example, if the emotional intensity levels given by the firstemotion presentation instruction are level 0 (low), level 1 (middle),and level 2 (high), and the levels of the emotional vocabularies arelevel 0, level 1, level 2, level 3, level 4, and level 5, the emotionalintensity (i.e., level 0 to level 5) of the emotional vocabulary in thecurrent text needs to be matched with the emotional intensity (i.e.,level 0 to level 2) of the first emotion presentation instruction basedon the operational rules, and does not exceed a range of the emotionalintensity of the first emotion presentation instruction. If there islevel “−1” or level 3, it means that the emotional intensity of theemotional vocabulary has exceeded the range of the emotional intensityof the first emotion presentation instruction, and thus the matchingrule or the level of the emotional intensity is unreasonable.

It should be noted that, in general, the emotional intensity of theemotion presentation instruction is firstly divided, because theemotional intensity determines the level of the emotional intensityfinally presented by the emotion presentation. Further, after the levelof the emotional intensity of the emotion presentation instruction isdetermined, the intensity level of the emotional vocabulary isdetermined.

In another embodiment of the present disclosure, each of the at leastone emotional vocabulary includes one or more emotional styles, and thesame emotional vocabulary of the at least one emotional vocabulary hasdifferent emotional styles and different emotional intensities indifferent application scenarios.

Specifically, each emotional vocabulary has one or more emotionalstyles, and the same emotional vocabulary may have different emotionalstyles and emotional intensities in different application scenarios.Taking the emotional vocabulary “good” as an example, in the case thatthe emotional style is “joy”, the emotional intensity of the emotionalvocabulary “good” is commendatory; and in the case that the emotionalstyle is “anger”, the emotional intensity of the emotional vocabulary“good” is derogatory.

In addition, the same emotional vocabulary may have differentinterpretations in different contexts to express different emotions;that is, the emotion style and the emotional polarity may be changed.Therefore, the same emotional vocabulary needs to be performed anemotion disambiguation according to the application scenarios and thecontexts to determine the emotional style of the emotional vocabulary.

Specifically, an emotion annotation of the Chinese emotional vocabularyis performed by an automatic mode, a manual mode, or a combination ofthe automatic mode and the manual mode. For vocabularies having multipleemotional styles, the emotion disambiguation may be performed based onpart of speech, emotional frequency, Bayesian model, and the like. Inaddition, the emotional style of the emotional vocabulary in the contextmay also be determined by constructing a context-sensitivecharacteristic set.

In another embodiment of the present disclosure, the emotionalvocabulary is a multiple emotional vocabulary, and the multipleemotional vocabulary includes a combination of a plurality ofvocabularies, and each of the multiple emotional vocabulary has noseparate emotional style attribute.

Specifically, the vocabulary itself may not have an emotional style, buta combination of several vocabularies, which is called the multipleemotional vocabulary, may have the emotional style, and may be used toconvey emotion information. The multiple emotional vocabulary may beobtained from a preset emotional semantic database, or may be obtainedthrough a preset logic rule or an external interface, and the presentdisclosure is not limited thereto.

In another embodiment of the present disclosure, the method forpresenting the emotion further includes: presenting an emotioncorresponding to an emotional style unspecified by the first emotionpresentation instruction according to each of the at least one firstemotion presentation modality, wherein emotional intensity correspondingto the unspecified emotional style is lower than the emotional intensitycorresponding to the at least one emotional style, or emotional polaritycorresponding to the unspecified emotional style is consistent with theemotional polarity of the at least one emotional style.

Specifically, in addition to the emotional style specified in the firstemotion presentation instruction, the emotional intensities of otheremotional styles in the text obtained according to a presetcorrespondence of the emotional intensity or a formula are lower thanall emotional intensities of the emotional styles specified in the firstemotion presentation instruction. That is, emotional intensitiescorresponding to unspecified emotional styles do not affect the emotionpresentation of various emotional styles in the first emotionpresentation instruction.

In another embodiment of the present disclosure, the method forpresenting the emotion further includes: determining a value ofemotional intensity corresponding to at least one emotional style in anemotion presentation text composed of the at least one emotionalvocabulary; and determining whether the emotional intensitycorresponding to the at least one emotional style conforms to the firstemotion presentation instruction according to the value of the emotionalintensity, wherein emotional intensity corresponding to the i-themotional style in the emotion presentation text is calculated by thefollowing formula: round[n/N*1/[1+exp(−n+1)]*max{a1, a2, . . . , an}],wherein round[X] represents rounding off X, n represents the number ofemotional vocabularies corresponding to the i-th emotional style, Nrepresents the number of emotional vocabularies in the emotionpresentation text, M represents the number of emotional stylescorresponding to the N emotional vocabularies, exp(x) represents anexponential function with a natural constant e as a base, a1, a2, . . ., an represent emotional intensities of the n emotional vocabulariesrespectively corresponding to an emotional style M, max{a1, a2, . . .an} represents the maximum value of the emotional intensities, whereinthe n, N and M are positive integers.

Specifically, in the above formula, let N=5, M=1, n=5 and max{a1, a2,a3, a4, a5}=5, the emotional intensity of the emotional style equals to5. Here, N=5 means that there are five emotional vocabularies in thetext, and M=1 means that the five emotional vocabularies have only oneemotional style. Therefore, the emotional intensity of the emotionalstyle in the text may be obtained by only one calculation.

Optionally, in the above formula, let N=5 and M=3, for an emotion A, ifn=3 and max{a1, a2, a3}=4, an emotional intensity of an emotional styleof the emotion A equals to 2; for an emotion B, if n=1 and max{b1}=4, anemotional intensity of an emotional style of the emotion B equals to 1;for an emotion C, if n=1 and max{c1}=2, an emotional intensity of anemotional style of the emotion C equals to 0. Here, N=5 means that thereare five emotional vocabularies in the text, and M=3 means that the fiveemotional vocabularies have three emotional styles. Therefore, it isnecessary to calculate three times to obtain the emotional intensity ofthe emotional style of the text.

At the same time, an emotional polarity of the i-th emotional style inthe text may be calculated by the following formula:

B=Sum(x1*(a1/max{a}),x2*(a2/max{a}), . . . ,xn*(an/max{a}))/n,

wherein Sum(X) represents that X may be summed, max{a} represents themaximum emotional intensity of all emotional vocabularies of theemotional style M, a1, a2, . . . , an represent emotional intensities ofn emotional vocabularies of the emotional style M, x1, x2, . . . , xnrepresent emotional polarities of n emotional vocabularies of theemotional style M.

It should be noted that the above formula needs to calculate eachemotional style M, so as to obtain the emotional polarity correspondingto the emotional style.

Further, if B>0.5, it means that the emotional polarity is commendatory,if B<−0.5, it means that the emotional polarity is derogatory; and if0.5≥B≥−0.5, it means that the emotional polarity is neutral.

It should be noted that the emotional polarity may be quantitativelyexpressed as: “+1” represents commendatory, “−1” represents derogatory,and “0” represents neutral; or the emotional polarity may be adjusted asneeded. In addition, it should also be noted that no dramatic changes inthe emotional polarity of the emotional style are allowed, for example,commendatory becomes derogatory, or derogatory becomes commendatory.

In another embodiment of the present disclosure, the presenting anemotion corresponding to one or more of the at least one emotional styleaccording to each of the at least one first emotion presentationmodality includes: presenting an emotion according to the at least onefirst emotion presentation modality, if the at least one first emotionpresentation modality conforms to an emotion presentation condition.

Specifically, the first emotion presentation modality conforms to theemotion presentation condition means that both the emotion output deviceand the user output device support modes presented by the first emotionpresentation modality, for example, text, voice, picture, and the like.Taking a customer service of a bank as an example. If a user wants toask the address of a bank, an emotional strategy module firstlygenerates a first emotion presentation instruction based on the user'semotion information, the first emotion presentation instruction mayinclude that a major presentation mode of the first emotion presentationmodality is “text”, and a secondary presentation modes of the firstemotion presentation modality are “image” and “voice”. Secondly, theemotion output device and the user output device are detected, and if itis detected that both the emotion output device and the user outputdevice support above three presentation modes such as text, image andvoice, the address of the bank is presented to the user in the form ofbasing on the text and supplementing by image and voice.

In another embodiment of the present disclosure, the method forpresenting an emotion further includes: generating a second emotionpresentation instruction according to the first emotion presentation,wherein the second emotion presentation instruction includes at leastone second emotion presentation modality, and the at least one secondemotion presentation modality is obtained by adjusting the at least onefirst emotion presentation modality, if it is determined that the atleast one first emotion presentation modality does not conform to theemotion presentation condition; and presenting an emotion according tothe at least one second emotion presentation modality.

Specifically, at least one first emotion presentation modality does notconform to the emotion presentation condition means that at least one ofthe emotion output device and the user output device does not support apresentation mode of the first emotion presentation modality, or thepresentation mode of the first emotion presentation modality needs to betemporarily changed according to dynamic changes (for example, a failureof the output device, changes of user requirements, dynamic changes of abackground control and/or changes of application scenario requirements,and the like). At this time, at least one first emotion presentationmodality needs to be adjusted to obtain at least one second emotionpresentation modality, and the emotion is presented based on at leastone second emotion presentation modality.

The process of adjusting at least one first emotion presentationmodality may be referred to as a secondary adjustment of the emotionpresentation modality, and the secondary adjustment may temporarilyadjust the output strategy and priority of the emotion presentationmodality according to the dynamic changes to troubleshoot problems andoptimize and give preference to the emotion presentation modality.

At least one second emotion presentation modality may include at leastone of a text emotion presentation modality, a voice emotionpresentation modality, an image emotion presentation modality, a videoemotion presentation modality, and a mechanical motion emotionpresentation modality.

In another embodiment of the present disclosure, if it is determinedthat the at least one first emotion presentation modality does notconform to the emotion presentation condition, the generating a secondemotion presentation instruction according to the first emotionpresentation instruction includes: if it is detected that the failure ofa user output device affects the presentation of the first emotionpresentation modality or the user output device does not support thepresentation of the first emotion presentation modality, determiningthat the at least one first emotion presentation modality does notconform to the emotion presentation condition, and adjusting the atleast one first emotion presentation modality in the first emotionpresentation instruction to obtain the at least one second emotionpresentation modality in the second emotion presentation instruction.

Specifically, at least one first emotion presentation modality does notconform to the emotion presentation condition may include, but is notlimited to, the failure of the user output device affects thepresentation of the first emotion presentation modality, or the useroutput device does not support the presentation of the first emotionpresentation modality, and the like. Therefore, if it is determined thatat least one first emotion presentation modality does not conform to theemotion presentation condition, at least one first emotion presentationmodality in the first emotion presentation instruction needs to beadjusted to obtain at least one second emotion presentation modality inthe second emotion presentation instruction.

Herein, still taking the customer service of the bank as an example, ifthe user wants to ask the address of a bank, the emotional strategymodule firstly generates the first emotion presentation instructionbased on the user's emotion information, the first emotion presentationinstruction may include that a major presentation mode of the firstemotion presentation modality is “text”, the secondary presentationmodes of the first emotion presentation modality are “image” and“voice”, the emotional style is “pleasure”, and the emotional intensityis “medium”. Secondly, the emotion output device and the user outputdevice are detected, if it is detected that the user output device doesnot support the presentation mode of picture (i.e., a map), it meansthat the first emotion presentation modality does not conform to theemotion presentation condition. In this case, the first emotionpresentation modality needs to be adjusted to obtain the second emotionpresentation modality. The major presentation mode of the second emotionpresentation modality is “text”, the secondary presentation mode of thesecond emotion presentation modality is “voice”, the emotional style is“pleasure”, and the emotional intensity is “medium”. Finally, theaddress of the bank is presented to the user in the form of basing onthe text, supplementing by voice, and the user is prompted that the mapcannot be displayed or the map is not displayed successfully, and theuser may view the map through other devices.

Optionally, as another embodiment of the present disclosure, if it isdetermined that the at least one first emotion presentation modalitydoes not conform to the emotion presentation condition, the generating asecond emotion presentation instruction according to the first emotionpresentation instruction includes: determining that the at least onefirst emotion presentation modality does not conform to the emotionpresentation condition according to changes of user requirements,dynamic changes of a background control and/or changes of applicationscenario requirements; and adjusting the at least one first emotionpresentation modality in the first emotion presentation instruction toobtain the at least one second emotion presentation modality in thesecond emotion presentation instruction.

Specifically, at least one first emotion presentation modality does notconform to the emotion presentation condition may further include, butis not limited to, changes of the user requirements, dynamic changes ofthe background control and/or changes of the application scenariorequirements. Therefore, if it is determined that at least one firstemotion presentation mode does not meet the emotion presentationcondition, at least one first emotion presentation modality in the firstemotion presentation instruction needs to be adjusted to obtain at leastone second emotion presentation modality in the second emotionpresentation instructions.

Herein, still taking the customer service of the bank as an example. Ifthe user wants to ask the address of a bank, the emotional strategymodule firstly generates the first emotion presentation instructionbased on the user's emotion information, the first emotion presentationinstruction may include that the major presentation mode of the firstemotion presentation modality is “text”, and the secondary presentationmode of the first emotion presentation instruction is “voice”, theemotional style is “pleasure”, and the emotional intensity is “medium”.Secondly, when receiving a request of the user that the address of thebank needs to be displayed in the form of a combination of text and map,it is determined that the first emotion presentation modality does notconform to the emotion presentation condition, and the first emotionpresentation modality is correspondingly adjusted to obtain a secondemotion presentation modality, the major presentation mode of the secondemotion presentation modality is “text”, the secondary presentation modeof the second emotion presentation modality is “image”, the emotionalstyle is “pleasure”, and the emotional intensity is “medium”. Finally,the address of the bank is presented to the user in the form of basingon the text and supplementing by image.

For the emotion presentation that does not conform to the emotionpresentation instruction, a feedback needs to be provided to a dialogsystem, so that the dialog system may readjust the output and make adetermination again until the outputted text conforms to the emotionpresentation instruction. The feedback adjustment of the dialogue systemmay include, but is not limited to, the following two methods: one is todirectly adjust and replace individual emotional vocabularies in acurrent sentence without adjusting the form of the sentence, so as tomeet emotion presentation standards of the emotion presentationinstruction, this method is suitable for a situation that there is alittle difference between the emotional style and the emotionalintensity; the other is to regenerate a sentence by the dialogue system,this method is suitable for a situation that there is a considerabledifference between the emotional style and the emotional intensity.

It should be noted that the first emotion presentation modality of thepresent disclosure is mainly based on the text emotion presentationmodality, but may present the emotion by selecting or adding the voiceemotion presentation modality, the image emotion presentation modality,the video emotion presentation modality, the mechanical motion emotionpresentation modality according to the user requirements, theapplication scenarios, and the like.

Specifically, the voice emotion presentation modality may include atext-based voice broadcast, and may also include a voice-based music, avoice-based sound, and the like, and the present disclosure is notlimited thereto. At this time, the emotion presentation database notonly stores emotional vocabularies (which are used to analyze theemotional style of the text corresponding to the voice) corresponding todifferent emotional styles in the application scenarios, but also needsto include audio parameters (for example, fundamental frequency,formant, energy feature, harmonic to noise ratio, pronunciation framenumber feature, Mel-frequency cepstral coefficient, and the like)corresponding to the different emotional styles, or audio features andtheir parameters corresponding to specific emotional styles extracted bytraining.

Further, the emotional style of the voice broadcast is derived from twoparts, namely, an emotional style A of a broadcast text and an emotionalstyle B of an audio signal, and the emotional style of the voicebroadcast is a combination of the emotional style A and the emotionalstyle B. For example, an average value (or summation operations withweight) of the emotional style and the emotional intensity of A and theemotional style and the emotional intensity of B is the emotional styleand the emotional intensity of the voice broadcast. A sound (including amusic or a sound without text information) may be classified based on avariety of audio parameters, or a part of audio data of the sound may bemanually labeled, and then features may be extracted by supervisedlearning to determine the emotional style and the emotional intensity ofthe sound.

The image emotion presentation modality may include, but is not limitedto, a face, a picture emoticon, an icon, a pattern, an animation, avideo, or the like. At this time, image parameters corresponding to thedifferent emotional styles needs to be stored in the emotionpresentation database. The image emotion presentation modality mayobtain the emotional style and the emotional intensity of image data byautomatically detecting and combining with the manual manner, or mayalso extract features by the supervised learning to determine theemotional style and the emotional intensity of the image.

The mechanical motion emotion presentation modality may include, but isnot limited to, activities and movements of various parts of the robot,mechanical movements of various hardware output devices, and the like.At this time, activity and motion parameters corresponding to thedifferent emotional styles needs to be stored in the emotionpresentation database. These parameters may be stored in the database inadvance, or may also be extended and updated through online learning,and the present disclosure is not limited thereto. After receiving theemotion presentation instruction, the mechanical motion emotionpresentation modality may select and implement an appropriate activityand exercise plan according to the emotional style and the emotionalintensity. It should be noted that the output of the mechanical motionemotion presentation modality needs to consider security problems.

All of the above optional technical solutions can be combined in any wayto form optional embodiments of the present disclosure, and detaileddescriptions are not provided herein.

FIG. 2 is a flowchart of a method for presenting an emotion according toanother exemplary embodiment of the present disclosure. As shown in FIG.2, the method for presenting an emotion may include the following steps.

In step 210, emotion information of a user is obtained.

In the embodiment of the present disclosure, the user's emotioninformation may be obtained by means of text, voice, image, gesture, andthe like.

In step 220, emotions of the emotion information are identified toobtain an emotional style.

In the embodiment of the present disclosure, word segmentation isperformed to the emotion information according to a preset wordsegmentation rule to obtain a plurality of emotional vocabularies. Theword segmentation rule may include any one of a forward maximum matchingmethod, an inverse maximum matching method, a word-by-word traversalmethod, and a word frequency statistical method. The word segmentationmay use one or more of a bidirectional maximum matching method, aViterbi algorithm, a Hidden Markov Model (HMM) algorithm, and aConditional Random Field (CRF) algorithm.

Then, a similarity calculation is performed between the plurality ofemotional vocabularies and a plurality of preset emotional vocabulariesstored in an emotional vocabulary semantic database, and the mostsimilar emotional vocabulary is used as a matched emotional vocabulary.

Specifically, if emotional vocabularies in the text are also in theemotional vocabulary semantic database, emotional styles and emotionalintensities corresponding to the emotional vocabularies are directlyextracted. If emotional vocabularies in the text are not in theemotional vocabulary semantic database, the word segmentation isperformed to the emotional vocabularies, and then the similaritycalculation is performed between the emotional vocabularies and contentsin the emotional vocabulary semantic database according to results ofthe word segmentation. Alternatively, an attention mechanism may beadded, for example, several key vocabularies are selected according tothe results of the word segmentation, and then the similaritycalculation is performed between the several key vocabularies and thecontents in the emotional vocabulary semantic database, if a similarityexceeds a threshold, an emotional style and an emotional intensity of avocabulary having the most similarity in the emotional vocabularysemantic database are used as the emotional intensity and the emotionalstyle of the vocabulary. If there are no emotional vocabularies in theemotional vocabulary semantic database, or the similarity does notexceed the threshold, it is considered that the emotional vocabulary isnot in the text, and thus an output of the emotional style is empty orneutral, and the emotional intensity is zero. It should be noted thatthe output needs to match the emotion presentation instruction decisionprocess, that is, the emotion presentation instruction decision processincludes a case that the emotional style is empty or neutral.

Herein, the similarity calculation may use a combination of one or moreof the following calculation methods: Vector Space Model (VSM), LatentSemantic Indexing (LSI), attribute-based semantic similarity, andHan-based distance semantic similarity.

Further, the emotional style is obtained according to the matchedemotional vocabulary. In addition to the emotional style, the emotionalintensity and the emotional polarity can also be obtained.

In step 230, an intention of the emotion information is parsed accordingto the emotional style to obtain the intention.

In the embodiment of the present disclosure, the emotional style and theemotional intensity can be obtained based on the analysis of theintention and the preset emotion presentation instruction decisionprocess, or the emotional polarity can also be obtained. The intentionanalysis may be obtained by text, or may also be obtained by capturingactions of the user, and the present disclosure is not limited thereto.Specifically, the intention may be obtained by performing the wordsegmentation, sentence segmentation, or vocabulary combination on thetext information of the emotion information, or may be obtained based onsemantic contents in the emotion information and the user information,or may also be obtained by capturing the emotion information such as theuser's expressions and actions, and the present disclosure is notlimited thereto.

In step 240, a first emotion presentation instruction is generatedaccording to the intention and a preset emotion presentation instructiondecision process, wherein the first emotion presentation instructionincludes at least one first emotion presentation modality and at leastone emotional style, and the at least one first emotion presentationmodality includes a text emotion presentation modality.

In the embodiment of the present disclosure, the emotion presentationinstruction decision process is a process of generating an emotionpresentation instruction according to emotional states (emotionalstyles), intention information, context, and the like obtained byidentifying the emotion.

In step 250, whether the at least one first emotion presentationmodality conforms to the emotion presentation condition is determined.

In step 260, if the at least one first emotion presentation modalityconforms to the emotion presentation condition, an emotion correspondingto one or more of the at least one emotional style is presentedaccording to each of the at least one first emotion presentationmodality.

In step 270, if it is determined that the at least one first emotionpresentation modality does not conform to the emotion presentationcondition, a second emotion presentation instruction is generatedaccording to the first emotion presentation instruction, wherein thesecond emotion presentation instruction includes at least one secondemotion presentation modality, and the at least one second emotionpresentation modality is obtained by adjusting the at least one firstemotion presentation modality.

In step 280, an emotion is presented according to the at least onesecond emotion presentation modality.

According to technical solutions provided by embodiments of the presentdisclosure, whether the first emotion presentation modality conforms tothe emotion presentation condition can be determined, and the finalemotion presentation modality can be adjusted based on the determinationresult, and thus the instantaneity can be improved and user experiencecan be further improved.

The following are embodiments of devices of the present disclosure,which can implement the embodiments of the methods of the presentdisclosure. The above descriptions regarding the embodiments of themethods also apply to the embodiments of the devices.

FIG. 3 is a block diagram of a device 300 for presenting an emotionaccording to an exemplary embodiment of the present disclosure. As shownin FIG. 3, the device 300 for presenting an emotion may include anobtaining module 310 and a presentation module 320.

The obtaining module 310 is configured to obtain a first emotionpresentation instruction, wherein the first emotion presentationinstruction includes at least one first emotion presentation modalityand at least one emotional style, and the at least one first emotionpresentation modality includes a text emotion presentation modality.

The presentation module 320 is configured to present an emotioncorresponding to one or more of the at least one emotional styleaccording to each of the at least one first emotion presentationmodality.

According to technical solutions provided by embodiments of the presentdisclosure, by obtaining a first emotion presentation instruction,wherein the first emotion presentation instruction includes at least onefirst emotion presentation modality and at least one emotional style,and the at least one first emotion presentation modality includes a textemotion presentation modality, and presenting an emotion correspondingto one or more of the at least one emotional style according to each ofthe at least one first emotion presentation modality, text-basedmulti-modal emotion presentation modes can be realized, and thus userexperience can be improved.

In another embodiment of the present disclosure, the presentation module320 of FIG. 3 searches in an emotion presentation database according tothe at least one emotional style to determine at least one emotionalvocabulary corresponding to each of the at least one emotional style,and present the at least one emotional vocabulary.

In another embodiment of the present disclosure, the each of the atleast one emotional style corresponds to a multiple of emotionalvocabularies, and the first emotion presentation instruction may furtherinclude: emotional intensity corresponding to the each of the at leastone emotional style and/or emotional polarity corresponding to the eachof the at least one emotional style, wherein the presentation module 320of FIG. 3 selects the at least one emotional vocabulary from theplurality of emotional vocabularies according to the emotional intensityand/or the emotional polarity.

In another embodiment of the present disclosure, the at least oneemotional vocabulary is divided into different levels according todifferent emotional intensities.

In another embodiment of the present disclosure, each of the at leastone emotional vocabulary includes one or more emotional style, and thesame emotional vocabulary of the at least one emotional vocabulary hasdifferent emotional styles and different emotional intensities indifferent scenarios.

In another embodiment of the present disclosure, the emotionalvocabulary is a multiple emotional vocabulary, and the multipleemotional vocabulary includes a combination of a plurality ofvocabularies, and each of the multiple emotional vocabulary has noseparate emotional style attribute.

In another embodiment of the present disclosure, the presentation module320 of FIG. 3 presents an emotion corresponding to an emotional styleunspecified by the first emotion presentation instruction according toeach of the at least one first emotion presentation modality, whereinemotional intensity corresponding to the unspecified emotional style islower than the emotional intensity corresponding to the at least oneemotional style, or emotional polarity corresponding to the unspecifiedemotional style is consistent with the emotional polarity of the atleast one emotional style.

In another embodiment of the present disclosure, the presentation module320 of FIG. 3 determines a value of emotional intensity corresponding toat least one emotional style in an emotion presentation text composed ofthe at least one emotional vocabulary; and determining whether theemotional intensity corresponding to the at least one emotional styleconforms to the first emotion presentation instruction according to thevalue of the emotional intensity, wherein emotional intensitycorresponding to the i-th emotional style in the emotion presentationtext is calculated by the following formula:round[n/N*1/[1+exp(−n+1)]*max{a1, a2, . . . , an}], wherein round[X]represents rounding off X, n represents the number of emotionalvocabularies corresponding to the i-th emotional style, N represents thenumber of emotional vocabularies in the emotion presentation text, Mrepresents the number of emotional styles corresponding to the Nemotional vocabularies, exp(x) represents an exponential function with anatural constant e as a base, a1, a2, . . . , an represent emotionalintensities of the n emotional vocabularies respectively correspondingto an emotional style M, max{a1, a2, . . . , an} represents the maximumvalue of the emotional intensities, wherein the n, N and M are positiveintegers.

In another embodiment of the present disclosure, the emotional polarityincludes one or more of commendatory, derogatory and neutral.

In another embodiment of the present disclosure, if the at least onefirst emotion presentation modality conforms to an emotion presentationcondition, the presentation module 320 of FIG. 3 presents an emotionaccording to the at least one first emotion presentation modality.

In another embodiment of the present disclosure, if it is determinedthat the at least one first emotion presentation modality does notconform to the emotion presentation condition, the presentation module320 of FIG. 3 generates a second emotion presentation instructionaccording to the first emotion presentation, wherein the second emotionpresentation instruction includes at least one second emotionpresentation modality, and the at least one second emotion presentationmodality is obtained by adjusting the at least one first emotionpresentation modality, and presents an emotion according to the at leastone second emotion presentation modality.

In another embodiment of the present disclosure, if it is detected thatthe failure of a user output device affects the presentation of thefirst emotion presentation modality or the user output device does notsupport the presentation of the first emotion presentation modality, thepresentation module 320 of FIG. 3 determines that the at least one firstemotion presentation modality does not conform to the emotionpresentation condition, and adjusts the at least one first emotionpresentation modality in the first emotion presentation instruction toobtain the at least one second emotion presentation modality in thesecond emotion presentation instruction.

In another embodiment of the present disclosure, the presentation module320 of FIG. 3 determines that the at least one first emotionpresentation modality does not conform to the emotion presentationcondition according to changes of user requirements, dynamic changes ofa background control, and/or changes of application scenariorequirements; and adjusts the at least one first emotion presentationmodality in the first emotion presentation instruction to obtain the atleast one second emotion presentation modality in the second emotionpresentation instruction.

In another embodiment of the present disclosure, the at least one secondemotion presentation modality may include at least one of a text emotionpresentation modality, a voice emotion presentation modality, an imageemotion presentation modality, a video emotion presentation modality anda mechanical motion emotion presentation modality.

In another embodiment of the present disclosure, the at least one firstemotion presentation modality may further include at least one of avoice emotion presentation modality, an image emotion presentationmodality, a video emotion presentation modality and a mechanical motionemotion presentation modality.

In another embodiment of the present disclosure, if the first emotionpresentation instruction includes a plurality of emotion presentationmodalities, the text emotion presentation modality is preferentiallyused to present the at least one emotional style; and then the at leastone emotional style is complementally presented by one or more of thevoice emotion presentation modality, the image emotion presentationmodality, the video emotion presentation modality and the mechanicalmotion emotion presentation modality.

With respect to the devices in the above embodiments, the specificmanners for performing operations for individual modules therein havebeen described in detail in the embodiments regarding the methods, whichwill not be elaborated herein.

FIG. 4 is a block diagram of a device 400 for presenting an emotionaccording to another exemplary embodiment of the present disclosure. Asshown in FIG. 4, the device 400 for presenting an emotion may include anobtaining module 410, an identification module 420, a parsing module430, an instruction generation module 440, a determination module 450,and a presentation module 460.

The obtaining module 410 is configured to obtain emotion information ofa user.

The identification module 420 is configured to identify emotions of theemotion information to obtain an emotional style.

The parsing module 430 is configured to parse an intention of theemotion information according to the emotional style to obtain theintention.

The instruction generation module 440 is configured to generate a firstemotion presentation instruction according to the intention and a presetemotion presentation instruction decision process, wherein the firstemotion presentation instruction includes at least one first emotionpresentation modality and at least one emotional style, and the at leastone first emotion presentation modality includes a text emotionpresentation modality.

The determination module 450 is configured to determine whether the atleast one first emotion presentation modality conforms to an emotionpresentation condition, and if the at least one first emotionpresentation modality conforms to the emotion presentation condition,present an emotion corresponding to one or more of the at least oneemotional style according to each of the at least one first emotionpresentation modality; and if it is determined that the at least onefirst emotion presentation modality does not conform to the emotionpresentation condition, generate a second emotion presentationinstruction according to the first emotion presentation, wherein thesecond emotion presentation instruction includes at least one secondemotion presentation modality, and the at least one second emotionpresentation modality is obtained by adjusting the at least one firstemotion presentation modality.

The presentation module 460 is configured to present an emotionaccording to the at least one second emotion presentation modality.

According to technical solutions provided by embodiments of the presentdisclosure, whether the first emotion presentation modality conforms tothe emotion presentation condition can be determined, and the finalemotion presentation modality can be adjusted based on the determinationresult, and thus the instantaneity can be improved and user experiencecan be further improved.

FIG. 5 is a block diagram of a device 500 for presenting an emotionaccording to an exemplary embodiment of the present disclosure.

Referring to FIG. 5, the device 500 includes a processing component 510that further includes one or more processors, and memory resourcesrepresented by a memory 520 for storing instructions executable by theprocessing component 510, such as application programs. The applicationprograms stored in the memory 520 may include one or more modules eachcorresponding to a set of instructions. Further, the processingcomponent 510 is configured to execute the instructions to perform theabove method for presenting an emotion.

The device 500 may also include a power component configured to performpower management of the device 500, wired or wireless networkinterface(s) configured to connect the device 500 to a network, and aninput/output (I/O) interface. The device 500 may operate based on anoperating system based on stored in the memory 520, such as WindowsServer™, Mac OS XT™, Unix™, Linux™, FreeBSD™, or the like.

A computer readable storage medium storing computer executableinstructions that, when executed by a processor of the device 500 forpresenting an emotion, cause the device 500 to perform a methodincluding: obtaining a first emotion presentation instruction, whereinthe first emotion presentation instruction includes at least one firstemotion presentation modality and at least one emotional style, and theat least one first emotion presentation modality includes a text emotionpresentation modality; and presenting an emotion corresponding to one ormore of the at least one emotional style according to each of the atleast one first emotion presentation modality.

Persons skilled in the art may realize that, units and algorithm stepsof examples described in combination with the embodiments disclosed herecan be implemented by electronic hardware, computer software, or thecombination of the two. In order to clearly describe theinterchangeability between the hardware and the software, compositionsand steps of each example have been generally described according tofunctions in the foregoing descriptions. Whether the functions areexecuted by hardware or software depends on particular applications anddesign constraint conditions of the technical solutions. Persons skilledin the art may use different methods to implement the describedfunctions for each particular application, but it should not beconsidered that the implementation goes beyond the scope of the presentinvention.

It can be clearly understood by persons skilled in the art that, for thepurpose of convenient and brief description, for a detailed workingprocess of the foregoing system, device and unit, reference may be madeto the corresponding process in the method embodiments, and the detailsare not to be described here again.

In several embodiments provided in the present application, it should beunderstood that the disclosed system, device, and method may beimplemented in other ways. For example, the described device embodimentsare merely exemplary. For example, the unit division is merely logicalfunctional division and may be other division in actual implementation.For example, multiple units or components may be combined or integratedinto another system, or some features may be ignored or not performed.Furthermore, the shown or discussed coupling or direct coupling orcommunication connection may be accomplished through indirect couplingor communication connection between some interfaces, devices or units,or may be electrical, mechanical, or in other forms.

Units described as separate components may be or may not be physicallyseparated. Components shown as units may be or may not be physicalunits, that is, may be integrated or may be distributed to a pluralityof network units. Some or all of the units may be selected to achievethe objective of the solution of the embodiment according to actualdemands.

In addition, the functional units in the embodiments of the presentinvention may either be integrated in a processing module, or each be aseparate physical unit; alternatively, two or more of the units areintegrated in one unit. The integrated units may be implemented throughhardware or software functional units.

If implemented in the form of software functional units and sold or usedas an independent product, the integrated units may also be stored in acomputer readable storage medium. Based on such understanding, thetechnical solution of the present invention or the part that makescontributions to the prior art, or all or a part of the technicalsolution may be substantially embodied in the form of a softwareproduct. The computer software product is stored in a storage medium,and contains several instructions to instruct computer equipment (suchas, a personal computer, a server, or network equipment) to perform allor a part of steps of the method described in the embodiments of thepresent invention. The storage medium includes various media capable ofstoring program codes, such as, a USB flash drive, a mobile hard disk, aRead-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk oran optical disk.

The foregoing descriptions are merely specific embodiments of thepresent invention, but the protection scope of the present invention isnot limited hereto. Any equivalent modification or replacement easilythought of by persons skilled in the art within the technical scope ofthe present invention should fall within the protection scope of thepresent invention. Therefore, the protection scope of the presentinvention is subject to the appended claims.

What is claimed is:
 1. A method for presenting an emotion, comprising:obtaining a first emotion presentation instruction, wherein the firstemotion presentation instruction comprises at least one first emotionpresentation modality and at least one emotional style, and the at leastone first emotion presentation modality comprises a text emotionpresentation modality; and presenting an emotion corresponding to one ormore of the at least one emotional style according to each of the atleast one first emotion presentation modality.
 2. The method of claim 1,wherein the presenting an emotion corresponding to one or more of the atleast one emotional style according to each of the at least one firstemotion presentation modality comprises: searching in an emotionpresentation database according to the at least one emotional style todetermine at least one emotional vocabulary corresponding to each of theat least one emotional style; and presenting the at least one emotionalvocabulary.
 3. The method of claim 2, wherein the each of the at leastone emotional style corresponds to a plurality of emotionalvocabularies, and the first emotion presentation instruction furthercomprises: emotional intensity corresponding to the each of the at leastone emotional style and/or emotional polarity corresponding to the eachof the at least one emotional style, wherein the searching in an emotionpresentation database according to the at least one emotional style todetermine at least one emotional vocabulary corresponding to each of theat least one emotional style comprises: selecting the at least oneemotional vocabulary from the plurality of emotional vocabulariesaccording to the emotional intensity and/or the emotional polarity. 4.The method of claim 2, wherein the at least one emotional vocabulary isdivided into different levels according to different emotionalintensities.
 5. The method of claim 3, wherein the emotional vocabularyis a multiple emotional vocabulary, and the multiple emotionalvocabulary comprises a combination of a plurality of vocabularies, andeach of the multiple emotional vocabulary has no separate emotionalstyle attribute.
 6. The method of claim 3, further comprising:presenting an emotion corresponding to an emotional style unspecified bythe first emotion presentation instruction according to each of the atleast one first emotion presentation modality, wherein emotionalintensity corresponding to the unspecified emotional style is lower thanthe emotional intensity corresponding to the at least one emotionalstyle, or emotional polarity corresponding to the unspecified emotionalstyle is consistent with the emotional polarity corresponding to the atleast one emotional style.
 7. The method of claim 6, further comprising:determining a value of emotional intensity corresponding to at least oneemotional style in an emotion presentation text composed of the at leastone emotional vocabulary; and determining whether the emotionalintensity corresponding to the at least one emotional style conforms tothe first emotion presentation instruction according to the value of theemotional intensity, wherein emotional intensity corresponding to thei-th emotional style in the emotion presentation text is calculated bythe following formula:round[n/N*1/[1+exp(−n+1)]*max{a1,a2, . . . ,an}], wherein round[X]represents rounding off X, n represents the number of emotionalvocabularies corresponding to the i-th emotional style, N represents thenumber of emotional vocabularies in the emotion presentation text, Mrepresents the number of emotional styles corresponding to the Nemotional vocabularies, exp(x) represents an exponential function with anatural constant e as a base, a1, a2 . . . , an represent emotionalintensities of the n emotional vocabularies respectively correspondingto an emotional style M, max{a1, a2, . . . , an} represents the maximumvalue of the emotional intensities, and wherein the n, N and M arepositive integers.
 8. The method of claim 1, wherein the presenting anemotion corresponding to one or more of the at least one emotional styleaccording to each of the at least one first emotion presentationmodality comprises: if the at least one first emotion presentationmodality conforms to an emotion presentation condition, presenting anemotion according to the at least one first emotion presentationmodality.
 9. The method of claim 8, further comprising: if it isdetermined that the at least one first emotion presentation modalitydoes not conform to the emotion presentation condition, generating asecond emotion presentation instruction according to the first emotionpresentation instruction, wherein the second emotion presentationinstruction comprises at least one second emotion presentation modality,and the at least one second emotion presentation modality is obtained byadjusting the at least one first emotion presentation modality; andpresenting an emotion according to the at least one second emotionpresentation modality.
 10. The method of claim 9, wherein if it isdetermined that the at least one first emotion presentation modalitydoes not conform to the emotion presentation condition, the generating asecond emotion presentation instruction according to the first emotionpresentation instruction comprises: if it is detected that the failureof a user output device affects the presentation of the first emotionpresentation modality or the user output device does not support thepresentation of the first emotion presentation modality, determiningthat the at least one first emotion presentation modality does notconform to the emotion presentation condition; and adjusting the atleast one first emotion presentation modality in the first emotionpresentation instruction to obtain the at least one second emotionpresentation modality in the second emotion presentation instruction.11. The method of claim 9, wherein if it is determined that the at leastone first emotion presentation modality does not conform to the emotionpresentation condition, the generating a second emotion presentationinstruction according to the first emotion presentation instructioncomprises: determining that the at least one first emotion presentationmodality does not conform to the emotion presentation conditionaccording to changes of user requirements, dynamic changes of abackground control and/or changes of application scenario requirements;and adjusting the at least one first emotion presentation modality inthe first emotion presentation instruction to obtain the at least onesecond emotion presentation modality in the second emotion presentationinstruction.
 12. The method of claim 9, wherein the at least one secondemotion presentation modality comprises: at least one of a text emotionpresentation modality, a voice emotion presentation modality, an imageemotion presentation modality, a video emotion presentation modality anda mechanical motion emotion presentation modality.
 13. The method ofclaim 1, wherein the at least one first emotion presentation modalityfurther comprises: at least one of a voice emotion presentationmodality, an image emotion presentation modality, a video emotionpresentation modality and a mechanical motion emotion presentationmodality.
 14. The method of claim 1, wherein if the first emotionpresentation instruction comprises a plurality of emotion presentationmodalities, the text emotion presentation modality is preferentiallyused to present the at least one emotional style, and then the at leastone emotional style is complementally presented by using one or more ofthe voice emotion presentation modality, the image emotion presentationmodality, the video emotion presentation modality and the mechanicalmotion emotion presentation modality.
 15. A device for presenting anemotion, comprising: a processor; and a memory for storing instructionsexecutable by the processor; wherein the processor is configured to:obtain a first emotion presentation instruction, wherein the firstemotion presentation instruction comprises at least one first emotionpresentation modality and at least one emotional style, and the at leastone first emotion presentation modality comprises a text emotionpresentation modality; and present an emotion corresponding to one ormore of the at least one emotional style according to each of the atleast one first emotion presentation modality.
 16. The device of claim15, wherein the processor is further configured to: if the at least onefirst emotion presentation modality conforms to an emotion presentationcondition, present an emotion according to the at least one firstemotion presentation modality.
 17. The device of claim 16, wherein theprocessor is further configured to: if it is determined that the atleast one first emotion presentation modality does not conform to theemotion presentation condition, generate a second emotion presentationinstruction according to the first emotion presentation instruction,wherein the second emotion presentation instruction comprises at leastone second emotion presentation modality, and the at least one secondemotion presentation modality is obtained by adjusting the at least onefirst emotion presentation modality; and present an emotion according tothe at least one second emotion presentation modality.
 18. The device ofclaim 17, wherein the processor is further configured to: if it isdetected that the failure of a user output device affects thepresentation of the first emotion presentation modality or the useroutput device does not support the presentation of the first emotionpresentation modality, determine that the at least one first emotionpresentation modality does not conform to the emotion presentationcondition; and adjust the at least one first emotion presentationmodality in the first emotion presentation instruction to obtain the atleast one second emotion presentation modality in the second emotionpresentation instruction.
 19. The device of claim 17, wherein theprocessor is further configured to: determine that the at least onefirst emotion presentation modality does not conform to the emotionpresentation condition according to changes of user requirements,dynamic changes of a background control and/or changes of applicationscenario requirements; and adjust the at least one first emotionpresentation modality in the first emotion presentation instruction toobtain the at least one second emotion presentation modality in thesecond emotion presentation instruction.
 20. A computer readable storagemedium storing computer executable instructions that, when executed by aprocessor of a device for presenting an emotion, cause the device toperform a method comprising: obtaining a first emotion presentationinstruction, wherein the first emotion presentation instructioncomprises at least one first emotion presentation modality and at leastone emotional style, and the at least one first emotion presentationmodality comprises a text emotion presentation modality; and presentingan emotion corresponding to one or more of the at least one emotionalstyle according to each of the at least one first emotion presentationmodality.